{ "type" : "object", "$schema" : "http://json-schema.org/draft-03/schema#", "description" : "This JSON file contains the extracted information for Reversal Out", "properties" : { "identifier" : { "type" : "integer", "required" : true, "description" : "Unique identifier for each file that is produced or processed by CMP" }, "version" : { "type" : "integer", "required" : true, "description" : "The current version of the generic extract file. This must match the corresponding inbound file.", "maximum" : 1.1, "minimum" : 1.1 }, "interfaceCategory" : { "type" : "string", "required" : true, "description" : "CMP categorisation of the job associated with this file", "enum" : [ "Device Enrolment" ] }, "interfaceType" : { "type" : "string", "required" : true, "description" : "Sub-categorisation of the job", "enum" : [ "Device Enrolment Request" ] }, "batchDateTime" : { "type" : "string", "required" : true, "description" : "Represents when a batch was created in CMP", "format" : "date-time" }, "extractLoadDateTime" : { "type" : "string", "required" : true, "description" : "Timestamp indicating when the generic extract file was created.", "format" : "date-time" }, "recordCount" : { "type" : "integer", "required" : true, "description" : "Total number of transaction records in the extract file. ", "minimum" : 0.0 }, "deviceEnrolmentProviderId" : { "type" : "string", "required" : true, "description" : "This indicates the manufacturer Id which uniquely identifier the manufacturer that this Device Enrolment request is for." }, "orders" : { "type" : "array", "required" : true, "items" : { "type" : "object", "properties" : { "id" : { "type" : "integer", "required" : true, "description" : "This is the unique identifier of the order that the devices are associated with." }, "requestType" : { "type" : "string", "required" : true, "description" : "This is indicates the type of request. It can be one of Return, Order, void or an override.", "enum" : [ "RETURN", "ORDER", "VOID", "OVERRIDE" ] }, "generatedDateTime" : { "type" : "string", "required" : true, "description" : "This is the time that the order was generated in CMP which in effect is the time that the sale was finalised.", "format" : "date-time" }, "externalOrderId" : { "type" : "string", "required" : true, "description" : "This represents the order number that is returned from the warehouse in the Order Dispatch Response." }, "customerDEPId" : { "type" : "string", "required" : true, "description" : "This represents the Id by which the customer is known as by the Device Manufacturer that we are trying to enrol the device with." }, "customerReference" : { "type" : "string", "required" : true, "description" : "This could be used for storing a PO Number" }, "shipmentDate" : { "type" : "string", "description" : "This is the date that the warehouse indicated that the order was dispatched", "format" : "date-time" }, "devices" : { "type" : "array", "required" : true, "items" : { "type" : "object", "properties" : { "deviceId" : { "type" : "string", "required" : true, "description" : "This contains the device Id of the device." }, "manufacturer" : { "type" : "string", "description" : "This contains the manufacturer of the device." }, "assetTag" : { "type" : "string", "description" : "This contains the asset Tag of the device." } } } } } } } } }